package app.controllers.filters;

import org.javalite.activeweb.controller_filters.HttpSupportFilter;
import org.javalite.common.Collections;

/**
 *
 * @author Kseniya Artsiukhova <kartsiukhova@productiveedge.com>
 */
public class CatchAllFilter extends HttpSupportFilter {

    @Override
    public void onException(Exception e) {
        logError(e.toString(), e);
        render("/system/error", Collections.map("message", e.toString()));
    }
}
